package com.xiyu.service.errorCode.health;

import com.xiyu.service.framework.exception.ErrorCode;

/**
* medicinePlan 错误码枚举类
*
* medicinePlan 用药计划，使用 1008002000段
*/
public interface MedicinePlanErrorCode {
    Integer ERROR_CODE_START_CODE = 1008002000;

    ErrorCode HEALTH_MEDICINE_PLAN_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE, "用药计划不存在");
    ErrorCode HEALTH_MEDICINE_PLAN_DETAIL_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 1, "用药计划明细不存在");
    ErrorCode HEALTH_MEDICINE_PLAN_DETAIL_DUPLICATE = new ErrorCode(ERROR_CODE_START_CODE + 2, "已经存在相同药品的用药计划明细");
    ErrorCode HEALTH_MEDICINE_PLAN_ELDER_DUPLICATE = new ErrorCode(ERROR_CODE_START_CODE + 3, "此老人已存在用药计划");
    ErrorCode HEALTH_MEDICINE_PLAN_DETAIL_NOT_EMPTY = new ErrorCode(ERROR_CODE_START_CODE + 4, "用药计划明细至少有一条");
}